/**
 * 
 */
package com.bestbuy.dao;

import java.util.List;

import org.hibernate.Session;

import com.bestbuy.pojo.ImageProduct;
import com.bestbuy.pojo.Product;
import com.bestbuy.pojo.ProductDetail;

/**
 * @author ThanhNgo
 *
 */
public interface ProductDao {
	public List<Product> getListProduct();
	public Product getProduct(Integer idproduct);
	public Product getProduct(String idProduct);
	public int countProduct(String keySearch, String idCatagory);
	public List<Product> Search(String keySearch,String idCatagory,String page);
	public List<Product> SearchByPrice(String startPrice,String endPrice);
	public void updateProduct(Product product);
	public void saveProduct(Product product);
	public void saveProductDetail(ProductDetail detail);
	public Product getProductByName(String nameProduct);
	//Test Delete
	public List<Product> getListProduct(String page, String isDelete);
	public int countProduct(String keySearch, String idCatagory, String isDelete);
	public List<Product> Search(String keySearch,String idCatagory,String page, String isDelete);
}
